import { createApp } from 'vue'
import './styles/index.scss'
import App from './App.vue'
import store from '@/store/index'
import router from './router'
import { GridLayout, GridItem } from './components/grid-layout'
import Widget from './components/portal/design/comp-widget/widget'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

const app = createApp(App)
// 全局注册自定义组件
Widget.install(app)
app
	.use(router)
	.use(ElementPlus)
	.component('GridLayout', GridLayout)
	.component('GridItem', GridItem)
	.use(store)
	.mount('#app')
